import {
	mapMutations
} from 'vuex'
export default {
	...mapMutations([
		'upUserInfo'
	]),
	submit() {
		let that = this
		that.$httpRequest.request({
			that: that,
			url: 'wechat/editUserInfo',
			params: {
				introduction: that.userInfo.introduction
			},
			success: res => {
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					that.upUserInfo(that.userInfo)
					uni.navigateBack({
						delta: 1
					})
				}
			}
		})
	}
}